<?php

namespace app\admin\model;

class Bizperson extends Base
{
    // 表名
    protected $name = 'bd_bizperson';

    //使用状态
    public function getbiztypeList()
    {
        return ["XSY" => "销售员", "CGY" => "采购员", "CHY" => "仓管员", "JHY" => "计划员", "CWRY" => "财务人员", "ZJY" => "质检员", "FWRY" => "服务人员", "JSY" => "驾驶员", "CSY" => "程序员"];
    }

    public function biz()
    {
        return $this->hasOne("Bizpersoncate",'id','fk_bdl_bdgroup');
    }

}
